package xyz.xmh.pattern.structural.filterpattern;

/**
 * Person 人<br/>
 * 被过滤的对象
 *
 * @author xuMingHai
 * @since 2021/4/30 星期五 14:01
 */
public class Person {

    /**
     * 姓名
     */
    private final String name;

    /**
     * 性别
     */
    private final String gender;

    /**
     * 婚姻情况
     */
    private final String maritalStatus;

    public Person(String name, String gender, String maritalStatus) {
        this.name = name;
        this.gender = gender;
        this.maritalStatus = maritalStatus;
    }

    public String getName() {
        return name;
    }

    public String getGender() {
        return gender;
    }

    public String getMaritalStatus() {
        return maritalStatus;
    }


}
